package com.suning.app.snpaasadmin.dao;

import com.suning.app.snpaasadmin.domain.WorkOrderBean;
import com.suning.app.snpaasadmin.pojo.CfWorkorder;
import com.suning.app.snpaasadmin.pojo.CfWorkorderExample;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

public interface CfWorkorderMapper {
    int countByExample(CfWorkorderExample example);

    int deleteByExample(CfWorkorderExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(CfWorkorder record);

    int insertSelective(CfWorkorder record);

    List<CfWorkorder> selectByExample(CfWorkorderExample example);

    CfWorkorder selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") CfWorkorder record, @Param("example") CfWorkorderExample example);

    int updateByExample(@Param("record") CfWorkorder record, @Param("example") CfWorkorderExample example);

    int updateByPrimaryKeySelective(CfWorkorder record);

    int updateByPrimaryKey(CfWorkorder record);
    
    List<WorkOrderBean> selectAllWorkorder();
    
    List<WorkOrderBean> selectUnreadByUser();
    
    List<WorkOrderBean> selectUserName(Map<String, Integer> map);
    
    List<WorkOrderBean> selectHandlingOrder();
    
    List<WorkOrderBean> selectCloseOrder();
}